package com.mspbots.core.wise.controller;

import com.mspbots.core.AbstractBaseController;
import com.mspbots.core.wise.model.TenantExceptionLog;
import com.mspbots.core.wise.service.TenantExceptionLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Callable;

/**
 * com.mspbots.core.controller.SystemExceptionLogController
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/29
 */
@RestController
@RequestMapping(path = "exception")
public class TenantExceptionLogController extends AbstractBaseController<TenantExceptionLog, TenantExceptionLogService> {

    @GetMapping("last-group")
    public Callable lastGroupTenantAndName() {
        return () -> this.service.lastGroupTenantAndName();
    }
}
